package net.url;

import java.net.URL;

public class RelativeUrl
{
	public static void main(String[] args)
	{
		try
		{
			URL urlbase = new URL("https://www.google.com.hk/webhp?hl=zh-CN/xiangdui");
			URL urlrelative = new URL(urlbase, "hahah");
			System.out.println(urlrelative);
		}
		catch (Exception e)
		{
		}
	}
}
